﻿
/*
*      
*          ┌─┐       ┌─┐
*       ┌──┘ ┴───────┘ ┴──┐
*       │                 │
*       │       ───       │
*       │  ─┬┘       └┬─  │
*       │                 │
*       │       ─┴─       │
*       │                 │
*       └───┐         ┌───┘
*           │         │
*           │         │
*           │         │
*           │         └──────────────┐
*           │                        │
*           │                        ├─┐
*           │                        ┌─┘    
*           │                        │
*           └─┐  ┐  ┌───────┬──┐  ┌──┘         
*             │ ─┤ ─┤       │ ─┤ ─┤         
*             └──┴──┘       └──┴──┘ 
*                 神兽保佑 
*                 代码无BUG! 
*  Author shang
*  2022-07-25 星期一 17:35
*/

using SqlSugar;
using TS.Common.Db;

namespace TS.Model;

[SugarTable("SshServer")]
public class SshServer:IDbModel
{
    [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
    public int ID { get; set; }
    public string ServerName { get; set; }
    public int Port { get; set; } = 22;
    [SugarColumn(IsNullable = true)]
    public string LoginName { get; set; }
    [SugarColumn(IsNullable = true)]
    public string PassWord { get; set; }
    /// <summary>
    /// Wait a max of 5 seconds when reading responses..
    /// </summary>
    public int IdleTimeoutMs { get; set; } = 5000;
    public string TermType { get; set; } = "dumb";
    public int WidthInChars { get; set; } = 120;
    public int HeightInChars { get; set; } = 40;

    public int PixWidth { get; set; } = 0;

    public int PixHeight { get; set; } = 0;
    public int PollTimeoutMs { get; set; } = 2000;
    public string Charset { get; set; } = "ansi";

    [SugarColumn(IsIgnore =true)]
    public string shell { get; set; }
}
